/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package RPS;

import SPARQL.Constant;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author mirko
 */
public class PeerSchema {
   
    private Set<Constant> constants;

    public PeerSchema(Set<Constant> constants) {
        this.constants = constants;
    }

    public PeerSchema() {
        this.constants = new HashSet<>();
    }
    
    public void addConstant(Constant constant){
        this.constants.add(constant);
        
    }
    

    public Set<Constant> getConstants() {
        return constants;
    }

    public void setConstants(Set<Constant> constants) {
        this.constants = constants;
    }
    
    public boolean contains(Set<Constant> constants){
        return this.constants.containsAll(constants);
    }
}
